home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1996 #15
/
Monster Media Number 15 (Monster Media)(July 1996).ISO
/
prog_bas
/
pbc32.zip
/
PBC$BAS.ZIP
/
PRINTBOX.BAS
< prev
next >
Wrap
BASIC Source File
|
1996-04-10
|
1KB
|
30 lines
' +----------------------------------------------------------------------+
' | |
' | PBClone (C) Copyright 1996 Charon Software, All Rights Reserved |
' | |
' +----------------------------------------------------------------------+
DECLARE SUB XQPrint (St$, BYVAL Row%, BYVAL Column%, BYVAL VAttr%, BYVAL Page%, BYVAL Fast%)
SUB PrintBox (St$, TopRow%, LeftCol%, BottomRow%, RightCol%, VAttr%, Page%, Fast%)
Cols% = RightCol% - LeftCol% + 1
IF Cols% < 1 OR (BottomRow% - TopRow% < 0) OR LEN(St$) = 0 THEN
EXIT SUB
END IF
IF LEN(St$) = 1 THEN
t$ = STRING$(Cols%, St$)
ELSE
DO UNTIL LEN(t$) >= Cols%
t$ = t$ + St$
LOOP
t$ = LEFT$(t$, Cols%)
END IF
FOR Row% = TopRow% TO BottomRow%
XQPrint t$, Row%, LeftCol%, VAttr%, Page%, Fast%
NEXT
END SUB